# for 99
# for i in range(1, 10):
#     for j in range(1, i + 1):
#         print(f"{j}*{i}={j * i}\t", end='')
#     print()

# 49 break

# for i in range(1, 6):
#     print("wenxiaojian")
#     for j in range(1, 6):
#         print('duchenxiao')
#         continue
#         print('yuju')
#     print('123')

# 50 案例
# money = 10000
# for i in range(1, 21):
#     import random
#
#     score = random.randint(1, 10)
#     if score < 5:
#         print(f"员工{i}绩效分{score}，不满足，不发工资，下一位")
#         continue
#     if money >= 1000:
#         money -= 1000
#         print(f"员工{i}，满足发放工资1000，公司账户余额：{money}")
#     else:
#         print(f"余额不足，当前余额：{money}元")
#         break

# 51 函数

# str1 = "wenxiaojian"
# str2 = 'duchenxiao'
# str3 = 'qupengfei'
#
#
# def my_len(data):
#     count = 0
#     for i in data:
#         count += 1
#     print(f"字符串{data}的长度是{count}")
#
#
# my_len(str1)
# my_len(str2)
# my_len(str3)

# 52 函数基础
# def say():
#     print("欢迎来到东华大学，你好")
#     print("请展示你的身份信息")
#
# say()

# 54 函数的传入参数
# def add(x, y, z):
#     result = x + y + z
#     print(f"{x}+{y}+{z}的结果是{result}")
#
#
# add(1, 2, 3)

# 55 练习
# def tempature_test(tempature):
#     if tempature <= 37.5:
#         print(f"您的体温是{tempature},满足要求")
#     else:
#         print(f"您的体温是{tempature},需要隔离")
#
#
# tempature_test(32)

# 56 函数返回值
# def add(a, b):
#     result = a + b
#     return result
#
#
# r = add(5, 6)
# print(r)
